# -*- coding: utf-8 -*-
from google.appengine.ext import db

class Source(db):
    name = db.StringProperty()
    domain = db.StringProperty()
    startUrl = db.StringProperty()
    watermark = db.BooleanProperty()
    addDatetime = db.DateTimeProperty()
    lastImgAddDatetime = db.DateTimeProperty()
    valid = db.BooleanProperty()
    extremum = db.StringProperty()
    type = db.StringProperty()

class Image(db):
    name = db.StringProperty()
    author = db.StringProperty()
    keywords = db.StringProperty()
    introduction = db.StringProperty()
    company = db.StringProperty()
    publicDatetime = db.DateTimeProperty()
    urls = db.StringProperty()
    infoUrl = db.StringProperty()
    addDatetime = db.DateTimeProperty()
    key = db.StringProperty()
    source = db.ReferenceProperty(Source)